package cn.wjdiankong.toutiaovideo;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.widget.LinearLayout;
import android.widget.TextView;
import cn.wjdiankong.levideo.R;
import cn.wjdiankong.levideo.activity.BaseActivity;
import cn.wjdiankong.levideo.utils.AdUtils;
import cn.wjdiankong.levideo.utils.AdUtils.AdListener;

public class UsageGuideActivity extends BaseActivity implements AdListener{
	
	public LinearLayout bannerLayout;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_toutiao_usageguide);
		initView();
		initData();
	}
	
	@Override
	protected void initView(){
		super.initView();
		setLeftImg(R.drawable.back_icon);
		setTitle("头条视频下载教程");
		TextView stepTxt = (TextView) findViewById(R.id.step_txt);
		stepTxt.setText("第一步：进入今日头条视频详情页\n\n第二步：选择分享按钮->转发链接\n\n第三步：列表中选择酱爆视频");
		bannerLayout = (LinearLayout) findViewById(R.id.ad_banner_layout);
	}
	
	@Override
	protected void initData(){
		super.initData();
		AdUtils.showBannerAd(bannerLayout, this);
	}
	
	@Override
	protected void clickLeftImg(){
		super.clickLeftImg();
		finish();
	}
	
	public static void startDefault(Context context){
    	Intent intent = new Intent(context, UsageGuideActivity.class);
        context.startActivity(intent);
    }
	
	@Override
	protected String getPageName() {
		return "toutiao_guide";
	}

	@Override
	public void showSucc() {
		
	}

	@Override
	public void showFail() {
		
	}

	@Override
	public void click() {
		
	}

	@Override
	public void close() {
		
	}
	
}
